import homeRoutes from '@/routers/home/home';
export default [
    {
        path:'/register',
        name:'register',
        component:()=>import('@/views/Register.vue')
    },
    {
        path:'/personcenter',
        name:'personcenter',
        component:()=>import('@/views/PersonalCenter.vue')
    },
    {
        path:'/problem',
        name:'problem',
        component:()=>import('@/views/TheProblem.vue')
    },
    {
        path:'/safety',
        name:'safety',
        component:()=>import('@/views/CenterofSafety.vue')
    },
    {
        path:'/service',
        name:'service',
        component:()=>import('@/views/CustomerService.vue')
    },
    {
        path:'/login',
        name:'login',
        component:()=>import('@v/Login.vue')
    },
    {
        path:'/home',
        name:'home',
        component:()=>import('@v/Home.vue'),
        children:homeRoutes
    },
    {
        // 路径错误跳转到这个页面
        path:'*',
        name:'notFound',
        component:()=>import('@/views/NotFound.vue')
    },
    {
        path:'/',
        redirect:{
            name:'home'
        }
    }
]